from os.path import exists,isfile, isdir

if __name__ == '__main__':
    print(exists(r"D:\spider\chapter3\doc\20230320.txt"))
    print(isfile(r"D:\spider\chapter3\doc\20230320.txt"))
    print(isdir(r"D:\spider\chapter3\doc\20230320.txt"))

